import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import '@/vant' //vant按需引入
import './styles/index.css' // 全局公共样式
import 'amfe-flexible' // rem适配
import '@/components/index'//全局公共组件注册
import * as API from './api/index'
Vue.config.productionTip = false
// vant 全局引入
// import Vant, {Lazyload} from 'vant';
// import 'vant/lib/index.css';
// Vue.use(Vant);
// Vue.use(Lazyload, {
//   lazyComponent: true,
// });


new Vue({
  beforeCreate () {
    Vue.prototype.$API = API
    Vue.prototype.$bus = this
  },
  router,
  store,
  render: h => h(App),
}).$mount('#app')
